package com.sunyard.manage.config;

import feign.Client;
import feign.Request;
import feign.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
import java.io.IOException;

public class InFeignClient extends Client.Default {

    private static Logger log = LoggerFactory.getLogger(InFeignClient.class);


    public InFeignClient(SSLSocketFactory sslContextFactory, HostnameVerifier hostnameVerifier) {
        super(sslContextFactory, hostnameVerifier);
    }

    @Override
    public Response execute(Request request, Request.Options options) throws IOException {
        log.info("Feign调用地址:{}", request.url());
        return super.execute(request, options);
    }

}
